<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<center>
<h1>Registration Form</h1>
 </center>
 <div class="registrationForm">
<form:form action="registration.htm" commandName="user">
    <form:hidden path="id" />

    <fieldset >
        <div class="form-row">
            <label for="firstName">Login:</label>
            <span class="input"><form:input path="username" /></span>
        </div>       
        <div class="form-row">
            <label for="password">Password:</label>
            <span class="input"><form:input path="password" /></span>
        </div>
        <div class="form-buttons">
            <div class="button"><input name="submit" type="submit" value="Register" /></div>
        </div>
    </fieldset>
</form:form>
</div>

<style>
	.registrationForm fieldset {
		width: 250px; 
		margin: auto
	}
	.registrationForm label {
		display: block;
		float: left;
		width: 100px;
	}
	
	.registrationForm .form-buttons {
		margin-top:10px;
		text-align:center;
	}
	
	
</style>